﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Catastrophe.BasePC.UI.Model
{
    /// <summary>
    /// 机构管理
    /// </summary>
    [SugarTable("sys_org")]
    [Obsolete("暂时不用")]
    public class SysOrgEntity
    {
        /// <summary>
        /// 父Id
        /// </summary>
        [SugarColumn(ColumnDescription = "父Id")]
        public long Pid { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnDescription = "名称", Length = 64)]
        [Required, MaxLength(64)]
        public  string Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [SugarColumn(ColumnDescription = "编码", Length = 64)]
        [MaxLength(64)]
        public string? Code { get; set; }
        /// <summary>
        /// 
        /// </summary>

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public int Id { get; set; }
    }
}
